import requests
import os
import time

db_namne = 'automation_test_platform' # 数据库名称
project_name = 'None'
global_yaml_name = ''
global_dict = {'global_yaml_name': '', 'project_name': None, 'db_namne': '', 'global_yaml_path':''}

"""项目路径"""
#项目路径
global_project_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
#项目路径-Basic路径
global_basic_path = os.path.join(global_project_path, 'Basic')
#项目路径-用例路径
global_testcase_path = os.path.join(global_project_path, 'testcase')
#项目路径-yaml用例路径
global_yaml_path = os.path.join(global_project_path, 'testcase')
#项目路径-Logs路径
global_log_path = os.path.join(global_project_path, 'Logs')
#项目路径-Logs路径-验证码
global_code_path = os.path.join(global_project_path, 'Logs', "getcode.jpg")

#全局变量——获取日期变量
global_datatime = time.strftime('%Y-%m-%d %H.%M.%S', time.localtime(time.time()))
global_daytime = time.strftime('%Y-%m-%d', time.localtime(time.time()))

"""接口测试全局变量"""
session = requests.session()